﻿using Caliburn.Micro;
using OPSYS_Schematic.Presentation.Views;
using OPSYS_Schematic.UIInfrastructure;

namespace OPSYS_Schematic.Presentation.Parts
{
    //[MenuPart(BaseMenu = WorkbenchName.ToolPart)]
    public class OptionPart : MenuPart
    {
        public OptionPart()
            : base(WorkbenchName.OptionPart)
        {
        }

        public override void Execute()
        {
            var dialog = new OptionsDialog();
            ViewModelBinder.Bind(IoC.Get<IOptionService>(), dialog, null);
            dialog.ShowDialog();
        }
    }
}